<template>
  <div class="container">
    <Category title="游戏">
      <template v-slot:center="cat1">
        <ul>
          <li v-for="(game, index) in cat1.games" :key="index">{{game}}</li>
        </ul>
      </template>
    </Category>
    <Category title="游戏">
      <template v-slot:center="cat2">
        <ol>
          <li v-for="(game, index) in cat2.games" :key="index">{{game}}</li>
        </ol>
      </template>
    </Category>
    <Category title="游戏">
      <template v-slot:center="{games}">
        <h4 v-for="(game, index) in games" :key="index">{{game}}</h4>
      </template>
    </Category>
  </div>
</template>

<script>
import Category from "@/components/Category";

export default {
  name: 'App',
  components: {
    Category
  },
  data() {
    return {}
  },
  methods: {},
}
</script>

<style>
.container, .footer {
  display: flex;
  justify-content: space-around;
}

img, video {
  width: 100%;
}

h4 {
  text-align: center;
}
</style>
